package com.example.vsprojekt;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

/**
 * Class which contains the activities and the corresponding layouts
 * @author Sebastian Rahmel
 *
 */
public class Buchverwaltung extends Activity {

	/**
	 * Method to refer the activity to a corresponding layout using a button
	 */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.buchverwaltung);
	

	Button btnMitwirkende = (Button) findViewById(R.id.btnMitwirkende);
	btnMitwirkende.setOnClickListener(new OnClickListener(){
		
		public void onClick(View v){
			
			Intent intent = new Intent(v.getContext(), Mitwirkende.class);
			startActivityForResult(intent, 0);
		}
	});
	
	/**
	 * Method to refer the activity to a corresponding layout using a button
	 */
	Button btnAusleihe = (Button) findViewById(R.id.btnAusleihe);
	btnAusleihe.setOnClickListener(new OnClickListener(){
		
		public void onClick(View v){
			
			Intent intent = new Intent(v.getContext(), LendBook.class);
			startActivityForResult(intent, 0);
		}
	});
	
	/**
	 * Method to refer the activity to a corresponding layout using a button
	 */
	Button btnAusgeliehene = (Button) findViewById(R.id.btnAusgeliehene);
	btnAusgeliehene.setOnClickListener(new OnClickListener(){
		
		public void onClick(View v){
			
			Intent intent = new Intent(v.getContext(), Ausgeliehene.class);
			startActivityForResult(intent, 0);
		}
	});

}

}
